package com.yisu.expressway.manager.core.service;

import com.yisu.expressway.ewf.common.web.EasyUIGrid;
import com.yisu.expressway.ewf.entity.RefundRecord;
import com.yisu.expressway.manager.domain.request.RefundRecordRequest;

/**
 * /**
 * User: 赵杰
 * Date: 2017/5/16
 * Time: 13:17
 * Desc: 退款相关业务接口.
 */
public interface IRefundRecordService {

    /**
     * 分页获取退款流水
     * @param refundRecordRequest
     * @return
     */
    EasyUIGrid<RefundRecord> getRefundRecordListByPage(RefundRecordRequest refundRecordRequest);

    /**
     * 通过主键获取退款信息实体
     * @param primaryKey 主键信息
     * @return
     */
    RefundRecord getModelByPrimaryKey(long primaryKey);

    /**
     * 退款成功
     * @param updateModel 退款更新实体
     * @return
     */
    boolean refundSuccess(RefundRecord updateModel);
}
